﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PlatformNetCore.Entity
{
    [Table("SysLoginLock")]
    public class SysLoginLock
    {
        [Key]
        [MaxLength(36)]
        public string ID { get; set; }

        /// <summary>
        /// 登录名
        /// </summary>
        [MaxLength(50)]
        public string Login { get; set; }

        /// <summary>
        /// 登录IP
        /// </summary>
        [MaxLength(64)]
        public string IP { get; set; }

        /// <summary>
        /// 今日登录次数
        /// </summary>
        public int LoginCount { get; set; }

        /// <summary>
        ///总登录次数
        /// </summary>
        public int TotalLoginCount { get; set; }

        /// <summary>
        /// 今日发送次数
        /// </summary>
        public int SendCount { get; set; }

        /// <summary>
        ///总发送次数
        /// </summary>
        public int TotalSendCount { get; set; }

        /// <summary>
        /// 上次发送时间
        /// </summary>
        public DateTime LastSendDate { get; set; }

        /// <summary>
        /// 上次登录时间
        /// </summary>
        public DateTime LastLoginDate { get; set; }

    }
}
